<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>人员列表</title>

<script type="text/javascript">
	function createUser(){
		// window.location.href = "${path}/user/addUI.do";
		 window.location.href = "${path}/user/add.do";  //测试SimpleFormController 功能
	}
</script>
</head>
<body>
	
	<table width="80%">
		<tr >
			<td colspan="5" align="right">
				<input type="button" onclick="createUser()" value="新增">
			</td>
		</tr>
	</table>
	<table cellpadding="0" cellspacing="0" bordercolor="black" border="1" width="80%">
		
		
		<tr>
			<td>编号</td>
			<td>名称</td>
			<td>地址</td>
			<td>邮箱</td>
			<td>操作</td>
		</tr>
		<c:forEach var="user" items="${users}" >
			<tr>
				<td><c:out value="${user.id}" /></td>
				<td><c:out value="${user.name}" /></td>
				<td><c:out value="${user.address}" /></td>
				<td><c:out value="${user.email}" /></td>
				<td>
					<a href="${path}/user/manage.do?method=updateUI&id=${user.id }">更新</a>
					<a href="${path}/user/manage.do?method=delete&id=${user.id }">删除</a>
				</td>
			</tr>
		</c:forEach>
		
	</table>
	
</body>
</html>